package com.br4mmie.asciistory.ui;

/**
 * WindowOption class, represents an option for OptionWindow
 * @author Niels
 *
 */
public class WindowOption {

	private String text; //the choice's text
	public boolean isSelected; //the option is selected
	
	/**
	 * Constructor
	 * @param txt text for the option to be represented with
	 */
	public WindowOption(String txt)
	{
		text = txt + '\n';
		isSelected = false;
	}
	
	/**
	 * returns the text for the option, adding a marker if highlighted
	 * @return String representation of the option.
	 */
	public String getLine()
	{
		if(isSelected)return ("[X] "+text);
		else return ("[ ] "+text);
	}
	
}
